package com.kc.data.common.domain.order.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.util.List;

/**
 * 商品订单
 */
@Data
@TableName(value = "kc_goods_order")
public class BizGoodsOrder {
    @TableId
    /*主键id*/
    private Integer id;
    /*用户id*/
    private Integer userId;
    /*订单号*/
    private String orderSn;
    /*商品金额+运费(用户实际支付金额)*/
    private Double price;
    /*商品价格*/
    private Double goodsPrice;
    /*折扣价格*/
    private Double discountPrice;
    /*运费*/
    private Double expressFee;
    /*订单状态*/
    private String status;
    /*订单备注*/
    private String remark;
    /*收货地址id*/
    @JsonIgnore
    private Integer addressid;
    /*收货地址详细信息*/
    @JsonIgnore
    private String address;
    /*支付时间*/
    private String paytime;
    /*支付回调数据*/
    @JsonIgnore
    private String payData;
    /*物流名称*/
    @JsonIgnore
    private String expresscom;
    /*物流号*/
    @JsonIgnore
    private String expresssn;
    /*物流拼音*/
    @JsonIgnore
    private String express;
    /*发货时间*/
    private String sendtime;
    /*退款时间*/
    @JsonIgnore
    private String refundtime;
    /*退款回调数据*/
    @JsonIgnore
    private String refundPayData;
    /*订单关闭原因*/
    private String closereason;
    /*商户id*/
    private Integer merchid;
    /*商品类别*/
    private Integer goodsType;
    /*景区id*/
    private Integer scenicId;
    /*订单类型*/
    @JsonIgnore
    private Integer orderType;
    /*订单类型*/
    private Integer merchType;
    /*订单关闭时间*/
    private String closeDate;
    /*过期时间(毫秒)*/
    @TableField(exist = false)
    private Long closeDateMs = 0l;
    /*优惠券/红包金额*/
    private Double couponMoney;
    /*优惠券/红包id*/
    @JsonIgnore
    private String couponId;
    private String createTime;
    /*发货方式 1物流2无需物流*/
    private String shipType;
    /*订单确认时间*/
    private String finishDate;
    /*父级订单id*/
    @JsonIgnore
    private Integer pid;
    /*支付金额*/
    private Double payMoney;
    /*商户/景区微信收款账户类型*/
    @JsonIgnore
    private String sharingAccountType;
    /*商户/景区微信收款账户*/
    @JsonIgnore
    private String sharingAccount;
    /*删除标识:1已删除，0未删除*/
    @JsonIgnore
    private Integer isDeleted = 0;
    /*新用户红包金额*/
    private Double userCouponMoney;
    /*用户返现*/
    private Double userWalletMoney;
    /*押金*/
    private Double deposit;
    /*是否要分账*/
    @JsonIgnore
    private Integer isShareBill;
    /*微信订单号*/
    @JsonIgnore
    private String transactionId;
    /*收货地址*/
    @TableField(exist = false)
    private BizUserAddress userAddress;
    /*订单商品列表*/
    @TableField(exist = false)
    private List<BizOrderGoods> orderGoodsList;
    /*进度条标识*/
    @TableField(exist = false)
    private Integer orderProgress = 0;
    /*订单状态*/
    @TableField(exist = false)
    private String statusName;

    private String openType;
    public BizGoodsOrder(){}


}
